package com.reus.server.service.impl;

import com.reus.api.model.Order;
import com.reus.api.service.OrderService;
import com.reus.core.exception.BaseException;

/**
 * description:
 * copyright: Copyright (c) 2018-2021
 * company: iSysCore Tech. Co., Ltd.
 *
 * @author liuxq@isyscore.com
 * @version 1.0
 * @date 2021-09-28 11:31:10
 */
public class OrderServiceImpl implements OrderService {

    @Override
    public Order findById(Integer id) {
        return new Order(1, "RPC", 1);
    }

    @Override
    public Order findError() {
        throw new BaseException("Custom exception");
    }
}
